﻿using Jinjia.Core.BaseInfrastructure.BaseModel;

namespace Jinjia.Approve.Entity.Entity.JJFlow
{
    ///<summary>
    ///jj_node
    ///表jj_node的实体类
    ///</summary>
    public class jj_node : BaseEntity
    {
        /// <summary>
        /// 节点名称
        /// </summary>
        public string node_name { get; set; }

        /// <summary>
        /// 节点类型 0起点 1条件节点 2 正常节点 99终点
        /// </summary>
        public int node_type { get; set; }

        /// <summary>
        /// 步骤
        /// </summary>
        public int node_step { get; set; }

        /// <summary>
        /// 流程ID
        /// </summary>
        public int template_id { get; set; }

        /// <summary>
        /// 流程名称
        /// </summary>
        public string template_name { get; set; }

        /// <summary>
        /// 转到的节点
        /// </summary>
        public string to_node { get; set; }

        /// <summary>
        /// 是否允许退回
        /// </summary>
        public int is_return { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 节点审核类型 0 或签 1 会签
        /// </summary>
        public int emp_type { get; set; }

        /// <summary>
        /// 为会签时需要获取审批的业务人员方法类名
        /// </summary>
        public string class_name { get; set; }

        /// <summary>
        /// 对应BPM流程图里面节点ID
        /// </summary>
        public string bpm_nodeid { get; set; }

        /// <summary>
        /// 节点权限类型1指定人员 2指定角色 3组织架构 4指定方法 5指定接口
        /// </summary>
        public int power_type { get; set; }

        /// <summary>
        /// 节点权限类型 组织架构 id
        /// </summary>
        public int power_org_level { get; set; }

        /// <summary>
        /// 相邻节点自动审批 0：否；1：是
        /// </summary>
        public int auto_approve { get; set; }

        /// <summary>
        /// 同意规则
        /// </summary>
        public string approve_rule { get; set; }

        /// <summary>
        /// 驳回规则
        /// </summary>
        public string reject_rule { get; set; }
    }
}